<?php
/**
 * @var $this \Action
 * @var $flashMessage \FlashMessages\FlashMessage
 */
?>
<div class="<?php echo ($flashMessage->isBlocking) ? 'big' : 'small' ; ?>-flash flash-element"
	 data-type-message="<?php echo ($flashMessage->isBlocking) ? 'blocking' : 'notBlocking' ; ?>"
	 data-flash-message-id="<?php echo (string)$flashMessage; ?>"
	 data-flash-message-required="<?php echo $flashMessage->isRequired ? 'yes' : 'no'; ?>"
	 data-flash-message-hash="<?php echo $flashMessage->hash; ?>"
	 data-style-message="<?php echo $flashMessage->style; ?>"
	>
	<div class="flash-close 
		<?php echo $flashMessage->isBlocking ? 'big-flash-close' : 'glyphicon glyphicon-remove';  ?>" 
		 data-flash-message-behavior-markAsProcessed data-flash-message-behavior-close></div>
	<?php if (!$flashMessage->isBlocking) : ?>
		<div class="small-flash-bg"></div>
	<?php endif; ?>
	<div class="flash-element-content">
		<?php echo $this->action($flashMessage->action['name'], $flashMessage->action['params']); ?>
	</div>
</div>